import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { SourcedetailPage } from '../sourcedetail/sourcedetail';
import { LogInPage } from '../log-in/log-in';
/**
 * Generated class for the SourcePage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-source',
  templateUrl: 'source.html',
})
export class SourcePage {

  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad SourcePage');
  }
  opendetail(){
    this.navCtrl.push(SourcedetailPage);
  }
  openlogin(){
    this.navCtrl.push(LogInPage);
  }
}
